package com.xjtu.weixin.service;

import com.xjtu.weixin.model.entity.MpSubscribe;
import me.chanjar.weixin.mp.api.WxMpService;
import me.chanjar.weixin.mp.bean.message.WxMpXmlMessage;
import me.chanjar.weixin.mp.bean.message.WxMpXmlOutMessage;

/**
 * ${DESCRIPTION}
 *
 * @author 杨凯
 * @create 2018-09-03 16:53
 **/
public interface MpSubscribeService {

	/**
	 * 添加订阅自动回复
	 * @param subscribe
	 */
	void addMpSubscribe(MpSubscribe subscribe);

	/**
	 * 获取自动回复内容
	 * @param wxMessage
	 * @param service
	 * @return
	 */
	WxMpXmlOutMessage getResponseMsg(WxMpXmlMessage wxMessage,
	                                 WxMpService service);
}
